﻿using System.Collections.Generic;
using DapperExtensions.Mapper;

namespace ZLWeb.WebApiEntityBase.Cache
{
    public class zzinfo
    {
        /// <summary>
        ///  充值收款（禁止小数）
        /// </summary>
        public int czxk { get; set; }

        /// <summary>
        ///  赠送内容：1-增值钱包
        /// </summary>
        public short czzsnr { get; set; }

        /// <summary>
        ///  赠送值（禁止小数）
        /// </summary>
        public int czzsz { get; set; }

    }
    public class ZzinfoMapper : ClassMapper<zzinfo>
    {
        public ZzinfoMapper()
        {
            Table("#zzinfo");
            Map(f => f.czzsnr).Column("czzsnr");
            Map(f => f.czxk).Column("czxk");
            Map(f => f.czzsz).Column("czzsz");
        }
    }

    public class ZzinfocsCacheItem
    {
        public const string CacheKey = "CRMZzinfocs";
        public List<zzinfo> infocs { get; set; }
        public int kinfocslogsn { get; set; }
    }
}
